import request from '@/utils/request'

// 获取核心业务指标统计
export function getStatistics() {
  return request({
    url: '/business/dashboard/statistics',
    method: 'get'
  })
}

// 获取采购趋势数据
export function getPurchaseTrend() {
  return request({
    url: '/business/dashboard/purchaseTrend',
    method: 'get'
  })
}

// 获取产品状态分布
export function getProductStatus() {
  return request({
    url: '/business/dashboard/productStatus',
    method: 'get'
  })
}

// 获取库存预警列表
export function getStockWarning() {
  return request({
    url: '/business/dashboard/stockWarning',
    method: 'get'
  })
}

// 获取利润预警列表
export function getProfitWarning() {
  return request({
    url: '/business/dashboard/profitWarning',
    method: 'get'
  })
}

